{*capture name=js_urls}
	{$default_admin_theme_url}/js/jq-bulkactions.js
{/capture*}
{include file="file:$admin_theme_global_path/_header.tpl"
	masthead="Site Content" pageTitle="Site Content" current="pageparts_admin_index"}
{* js_urls=$smarty.capture.js_urls *}
<div class="grid_16">
	{*
	<div class="top-actions grid_8 alpha">
		<form id="bulk_action_form" action="" method="get" class="bulk-actions">
			<select name="bulk_action" id="bulk_action">
				<option value="">{t}Bulk Actions{/t}</option>
				<option value="{url}/pageparts/admin/bulkdelete{/url}">{t}Delete{/t}</option>
			</select>
			<input type="submit" value="{t}Apply{/t}" />
		</form>
	</div>
	*}
	<div class="top-actions grid_16 alpha omega">
		<form action="{url}/pageparts/admin/index{/url}" method="get" class="search">
			<input type="text" name="q" id="q" value="{$q}" />
			<input type="submit" value="{t}Search Pages{/t}" />
		</form>
	</div>
	{include file="file:$admin_theme_global_path/_pager.tpl" class="grid_16 alpha omega"}
	<div class="grid_16 faux-thead alpha omega">
		{*<div class="grid_1 alpha"><input type="checkbox" class="checkbox" name="check_all" id="check_all" /></div>*}
		<div class="grid_5 alpha">{t}Page Title{/t}</div>
		<div class="grid_4">{t}Site Section{/t}</div>
		<div class="grid_3">{t}Last Edited By{/t}</div>
		<div class="grid_4 omega">{t}Date Modified{/t}</div>
	</div>
	{foreach from=$contentpages item=contentpage key=index}
		<div class="grid_16{if ($index + 1) mod 2 eq 0} even{else} odd{/if} faux-tr alpha omega">
			{*
			<div class="grid_1 alpha">
				<input type="checkbox" class="bulk_checkbox"
					name="bulk_checkbox[]" id="contentpage_checkboxes_{$contentpage.id}"
					value="{$contentpage.id}" />
			</div>
			*}
			<div class="grid_5 alpha"><a href="{url}/pageparts/admin/listparts/page_id/{$contentpage.id}{/url}">{$contentpage.title}</a></div>
			<div class="grid_4">{$contentpage.category_name}</div>
			<div class="grid_3">&nbsp;</div>
			<div class="grid_4 omega">{$contentpage.last_modified_on}</div>
		</div>
	{/foreach}
	{include file="file:$admin_theme_global_path/_pager.tpl" class="grid_16 alpha omega"}
</div>
{include file="file:$admin_theme_global_path/_footer.tpl"}
